Add GDK_GL env var and GdkGLFlags
authorAlexander Larsson <alexl@redhat.com>
Thu, 6 Nov 2014 09:21:48 +0000 (10:21 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 6 Nov 2014 11:24:43 +0000 (12:24 +0100)
commit90a5fa80af4e826b1b89175f499d9e6b05b7c32e
treea19c264dc4a9396f2f5d8755f3a6f6f651433bdb
parent7fde5213b011782c692d2d18f52649a463307166
Add GDK_GL env var and GdkGLFlags

This moves the GDK_ALWAYS_USE_GL env var to GDK_GL=always.
It also changes GDK_DEBUG=nogl to GDK_GL=disable, as GDK_DEBUG
is really only about debug loggin.

It also adds some completely new flags:

 software-draw-gl:
   Always use software fallback for drawing gl content to a cairo_t.
   This disables the fastpaths that exist for drawing directly to
   a window and instead reads back the pixels into a cairo image
   surface.

 software-draw-surface:
   Always use software fallback for drawing cairo surfaces onto a
   gl-using window.  This disables e.g. texture-from-pixmap on X11.

 software-draw:
   Enables both the above.
gdk/gdk.c
gdk/gdkgl.c
gdk/gdkglobals.c
gdk/gdkinternals.h
gdk/gdkwindow.c